﻿#region Styx Namespaces
using Styx;
using Styx.CommonBot.Routines;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {

        /// <summary>
        /// Cost: 0 Chi |
        /// Range: 40 Yards |
        /// Cast Time: Instant |
        /// GCD: 1 Second |
        /// http://www.wowhead.com/spell=117368
        /// </summary>


        public bool GrappleWeapon()
        {
            return (MIRsettings.Instance.GrappleWeapon) && 
                (StyxWoW.Me.CurrentTarget != null) &&
                   (StyxWoW.Me.CurrentTarget.Distance <= 40 &&
                    StyxWoW.Me.CurrentTarget.IsPlayer &&
                    (StyxWoW.Me.CurrentTarget.Class == WoWClass.DeathKnight ||
                     StyxWoW.Me.CurrentTarget.Class == WoWClass.Warrior ||
                     StyxWoW.Me.CurrentTarget.Class == WoWClass.Rogue) &&
                    CanCast("Grapple Weapon"));
        }
    }
}
